/**
 * Rope joint definition. This requires two body anchor points and
 * a maximum lengths.
 * Note: by default the connected objects will not collide.
 * see collideConnected in b2JointDef.
**/
public class b2RopeJointDef extends b2JointDef {

	public b2RopeJointDef()
	{
		type = b2JointType.e_ropeJoint;
		localAnchorA = new b2Vec2(-1.0f, 0.0f);
		localAnchorB = new b2Vec2(1.0f, 0.0f);
		maxLength = 0.0f;
	}

	public void release() {
		localAnchorA.release();
		localAnchorB.release();
	}

	/// The local anchor point relative to bodyA's origin.
	public b2Vec2 localAnchorA;

	/// The local anchor point relative to bodyB's origin.
	public b2Vec2 localAnchorB;

	/// The maximum length of the rope.
	/// Warning: this must be larger than b2_linearSlop or
	/// the joint will have no effect.
	public float maxLength;
}
